package day5;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author oldliu
 * @since 1.0
 */
public class ArrasTest {
    public static void main(String[] args) {
        List l = Arrays.asList(1, 2, 3, 5);
        System.out.println(l);
        List l2=new ArrayList();
        l2.addAll(l);
        System.out.println(l2);
        System.out.println(">>>>>>>>>>>>>>>>>>");
        double d[]={1,2,3,5};
        //20,数组扩容，保留原值
        double[] d2 = Arrays.copyOf(d, 2);
        System.out.println(Arrays.toString(d2));
    }
}
